package com.ychen.commons.entity.goods;

import com.ychen.commons.entity.BaseEntity;
import lombok.Data;
import org.springframework.data.annotation.Id;

import java.util.List;
import java.util.Map;


/**
 * SKU stock keeping unit 库存量单位
 */
@Data
public class SKUEntity extends BaseEntity {
    @Id
    private Long skuId;
    private Long goodsId;
    /**
     * SKU属性
     */
    private Map<String, String> SKUAttribute;

    /**
     * 原价
     */
    private Long originalPrice;
    /**
     * 价格
     */
    private Long price;
    /**
     * 库存
     */
    private Integer stock;

    /**
     * SKU销量
     */
    private Integer skuSalesVolume;


    /**
     * 用于商品详情， 最多限制x张
     */
    private List<String> skuImageUrls;


}
